import { NgModule } from '@angular/core';
import { SharedModule } from '@shared';
import { ArchiveRoutingModule } from './archive-routing.module';
import { ArchiveFileComponent } from './file/file.component';
import { ArchiveFileEditComponent } from './file/edit/edit.component';
import { ArchiveFileViewComponent } from './file/view/view.component';
import { ArchiveBorrowComponent } from './borrow/borrow.component';
import { ArchiveBorrowEditComponent } from './borrow/edit/edit.component';
import { ArchiveBorrowViewComponent } from './borrow/view/view.component';
import { ArchiveRevertComponent } from './revert/revert.component';
import { ArchiveRevertEditComponent } from './revert/edit/edit.component';
import { ArchiveRevertViewComponent } from './revert/view/view.component';
import { ArchiveRecordComponent } from './record/record.component';
import { ArchiveRecordEditComponent } from './record/edit/edit.component';
import { ArchiveRecordViewComponent } from './record/view/view.component';

const COMPONENTS = [
  ArchiveFileComponent,
  ArchiveBorrowComponent,
  ArchiveRevertComponent,
  ArchiveRecordComponent];
const COMPONENTS_NOROUNT = [
  ArchiveFileEditComponent,
  ArchiveFileViewComponent,
  ArchiveBorrowEditComponent,
  ArchiveBorrowViewComponent,
  ArchiveRevertEditComponent,
  ArchiveRevertViewComponent,
  ArchiveRecordEditComponent,
  ArchiveRecordViewComponent];

@NgModule({
  imports: [
    SharedModule,
    ArchiveRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT
})
export class ArchiveModule { }
